package com.jayam.gas.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootPanel;
import com.jayam.gas.client.controller.AppController;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Gas implements EntryPoint {
	@Override
	public void onModuleLoad() {
		final OrderServiceAsync rpcService = GWT.create(OrderService.class);
		final HandlerManager eventBus = new HandlerManager(null);
		final AppController appViewer = new AppController(rpcService, eventBus);

		appViewer.go(RootPanel.get("root"));
	}
}
